package at.fhv.androideightpuzzle.network;

public class NetworkSocketFactory {
	
	public static NetworkSocket createNetworkSocket(ConnectionType type){
		switch(type){
			case BLUETOOTH:
				return new BluetoothNetworkSocket();
				
			case TCP:
				return new TcpSocket();
				
			default:
				return null;
		}
	}
	
	public static NetworkServerSocket createNetworkServerSocket(ConnectionType type){
		switch(type){
			case BLUETOOTH:
				return new BluetoothServerSocket();
				
			case TCP:
				return new TcpServerSocket();
				
			default:
				return null;
		}
	}
}
